package a09_proxy;

/**
 * like a decorator
 * 
 * @author 
 *
 */
public class Proxy2 implements AbstractObject {

	private AbstractObject target;

	public Proxy2(AbstractObject target) {
		this.target = target;
	}

	@Override
	public void execute() {
		System.out.println("before target execute");
		target.execute();
		System.out.println("after target execute");
	}

}
